﻿import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
  path: '/',
  redirect: '/index'
},
{
  path: '/index',
  name: 'Index',
  component: () =>
    import('../views/Index.vue')
},
{
  path: '/classify',
  name: 'Classify',
  component: () =>
    import('../views/Classify.vue')
},
{
  path: '/find',
  name: 'Find',
  component: () =>
    import('../views/Find.vue')
},
{
  path: '/shoppingCart',
  name: 'shoppingCart',
  component: () =>
    import('../views/shopping-cart.vue')
},
{
  path: '/mine',
  name: 'Mine',
  component: () =>
    import('../views/Mine.vue')
},
{
  path: '/login',
  name: 'login',
  component: () =>
    import('../views/login.vue')
},
{
  path: '/collect',
  name: 'collect',
  component: () =>
    import('../views/Collect.vue')
},
{
  path: '/detail',
  name: 'detail',
  component: () =>
    import('../views/detail.vue')
},
{
  path: '/accountManage',
  name: 'accountManage',
  component: () =>
    import('../views/account-manage.vue')
},
{
  path: '/attention',
  name: 'attention',
  component: () =>
    import('../views/attention.vue')
},
{
  path: '/goodsList',
  name: 'GoodsList',
  component: () =>
    import('../views/GoodsList.vue')
},
{
  path: '/brandStory',
  name: 'brandStory',
  component: () =>
    import('../views/brandStory.vue')
},
{
  path: '/ChangePasswor',
  name: 'ChangePasswor',
  component: () =>
    import('../views/ChangePasswor.vue')
}
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router